package com.circle.rest.modular.sys.dao;

import com.circle.rest.modular.sys.model.Relation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 角色和菜单关联表 Mapper 接口
 * </p>
 *
 * @author 赵航
 * @since 2019-04-02
 */
public interface RelationMapper extends BaseMapper<Relation> {

    /**
     * 校验角色权限
     *
     * @param roleid
     * @param url
     * @return
     */
    List<Relation> checkPermission(String roleid, String url);
}
